<h3>评论区</h3><hr>
<?php
	$conn=mysqli_connect("127.0.0.1","root","","xss");
	#读取数据库信息
	$sql="select uname,msg from conments";
	$result=mysqli_query($conn,$sql);
	if(mysqli_num_rows($result)>0){
		while($row=mysqli_fetch_assoc($result)){
			echo "<p>".$row["uname"].":".$row["msg"]."</p>";
		}
	}else{
		echo "还没有评论！";
	} 